#ifndef SKELETON2_H
#define SKELETON2_H

#include "SceneNode.h"
#include "bone.h"


/// Bones ID's
#define TORSO 0

#define LEFT_ARM0 1
#define RIGHT_ARM0 2
#define LEFT_LEG0 3
#define RIGHT_LEG0 4

#define LEFT_ARM1 5
#define RIGHT_ARM1 6
#define LEFT_LEG1 7
#define RIGHT_LEG1 8

// Length of arms/legs
#define ARM_LENGTH 4
#define LEG_LENGTH 5

class Skeleton2 : public SceneNode
{
public:
    Bone2 *torso;
    Bone2 *leftLeg0, *rightLeg0, *leftArm0, *rightArm0;
    Bone2 *leftLeg1, *rightLeg1, *leftArm1, *rightArm1;

    // Override
    virtual void draw();
    virtual void update();
    virtual void animate();

    Skeleton2(float lenArm, float lenLeg); // Default constructor
    ~Skeleton2(); // Destructor
};

#endif // SKELETON2_H
